mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 12:10:39 +01:00
fix(UI): hide tools menu if no tools available
This commit is contained in:
parent
37a848df9d
commit
da1947e4ef
@ -256,7 +256,11 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li slot="header" class="tab-item dropdown tools-dropdown">
|
<li
|
||||||
|
v-if="workspace.customizations.processesList"
|
||||||
|
slot="header"
|
||||||
|
class="tab-item dropdown tools-dropdown"
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
class="tab-link workspace-tools-link dropdown-toggle"
|
class="tab-link workspace-tools-link dropdown-toggle"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@ -264,8 +268,8 @@
|
|||||||
>
|
>
|
||||||
<i class="mdi mdi-24px mdi-tools" />
|
<i class="mdi mdi-24px mdi-tools" />
|
||||||
</a>
|
</a>
|
||||||
<ul class="menu text-left text-uppercase">
|
<ul v-if="hasTools" class="menu text-left text-uppercase">
|
||||||
<li v-if="workspace.customizations.processesList" class="menu-item">
|
<li class="menu-item">
|
||||||
<a class="c-hand p-vcentered" @click="showProcessesModal">
|
<a class="c-hand p-vcentered" @click="showProcessesModal">
|
||||||
<i class="mdi mdi-memory mr-1 tool-icon" />
|
<i class="mdi mdi-memory mr-1 tool-icon" />
|
||||||
<span>{{ $t('message.processesList') }}</span>
|
<span>{{ $t('message.processesList') }}</span>
|
||||||
@ -569,6 +573,11 @@ export default {
|
|||||||
if (this.workspace.breadcrumbs[key]) return this.workspace.breadcrumbs[key];
|
if (this.workspace.breadcrumbs[key]) return this.workspace.breadcrumbs[key];
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
},
|
||||||
|
hasTools () {
|
||||||
|
return this.workspace.customizations.processesList ||
|
||||||
|
this.workspace.customizations.usersManagement ||
|
||||||
|
this.workspace.customizations.variables;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user