fix: only super-user should be able to restart
This commit is contained in:
parent
b758cb5be3
commit
53af4a4b99
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
style="padding: 6px; border-radius: 6px"
|
style="padding: 6px; border-radius: 6px"
|
||||||
/>
|
/>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn label="Restart server" color="primary" @click="restartServer">
|
<q-btn v-if="isSuperUser" label="Restart server" color="primary" @click="restartServer">
|
||||||
<q-tooltip v-if="needsRestart">
|
<q-tooltip v-if="needsRestart">
|
||||||
Restart the server for changes to take effect
|
Restart the server for changes to take effect
|
||||||
</q-tooltip>
|
</q-tooltip>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue