mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
show one secret dropdown in storageClass create page
This commit is contained in:
@@ -2,6 +2,8 @@ import { clone } from '@shell/utils/object';
|
||||
import Secret from '@shell/models/secret';
|
||||
import { HCI } from '../../types';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import Secret from '@shell/models/secret';
|
||||
import { NAMESPACE } from '@shell/config/types';
|
||||
|
||||
export default class HciSecret extends Secret {
|
||||
get _detailLocation() {
|
||||
@@ -52,6 +54,14 @@ export default class HciSecret extends Secret {
|
||||
return this.doneOverride;
|
||||
}
|
||||
|
||||
get isSystem() {
|
||||
const inStore = this.$rootGetters['currentProduct'].inStore;
|
||||
|
||||
const systemNs = this.$rootGetters[`${ inStore }/all`](NAMESPACE).filter(ns => ns.isSystem === true).map(ns => ns.metadata.name);
|
||||
|
||||
return systemNs.includes(this.metadata.namespace);
|
||||
}
|
||||
|
||||
get details() {
|
||||
const out = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user