mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: Root org disable some action
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
</IBox>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drawer-footer">
|
||||
<div v-if="!isRootOrg" class="drawer-footer">
|
||||
<div v-if="isBatch">
|
||||
<el-input v-model="comment" :placeholder="$tc('PleaseEnterReason')" type="textarea" />
|
||||
<span class="buttons">
|
||||
@@ -116,6 +116,9 @@ export default {
|
||||
}
|
||||
|
||||
return false
|
||||
},
|
||||
isRootOrg() {
|
||||
return this.$store.getters.currentOrgIsRoot
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -221,7 +221,7 @@ export default {
|
||||
const actions = _.cloneDeep(riskActions)
|
||||
const filteredActions = []
|
||||
for (const action of actions) {
|
||||
action.disabled = await this.checkDisabled(action)
|
||||
action.disabled = await this.checkDisabled(action) || (action.name !== 'review' && this.$store.getters.currentOrgIsRoot)
|
||||
const has = await this.checkHas(action)
|
||||
if (has) {
|
||||
filteredActions.push(action)
|
||||
|
||||
Reference in New Issue
Block a user