Skip to content

Commit

Permalink
don't show in hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jul 1, 2024
1 parent 739181a commit fd9f1bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/components/accounts/RolesForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
label="Edit Custom Fields"
/>
<q-checkbox
v-if="!hosted"
v-model="localRole.can_use_webterm"
label="Use TRMM Server Web Terminal"
/>
Expand Down Expand Up @@ -333,6 +334,7 @@
label="Manage Scripts"
/>
<q-checkbox
v-if="!hosted"
v-model="localRole.can_run_server_scripts"
label="Run Scripts on TRMM Server"
/>
Expand Down Expand Up @@ -417,7 +419,8 @@

<script>
// composition imports
import { ref, watch } from "vue";
import { computed, ref, watch } from "vue";
import { useStore } from "vuex";
import { useDialogPluginComponent } from "quasar";
import { saveRole, editRole } from "@/api/accounts";
import { useClientDropdown, useSiteDropdown } from "@/composables/clients";
Expand All @@ -435,6 +438,10 @@ export default {
// quasar setup
const { dialogRef, onDialogHide, onDialogOK } = useDialogPluginComponent();
// store
const store = useStore();
const hosted = computed(() => store.state.hosted);
// dropdown setup
const { clientOptions } = useClientDropdown(true);
const { siteOptions } = useSiteDropdown(true);
Expand Down Expand Up @@ -561,6 +568,7 @@ export default {
loading,
clientOptions,
siteOptions,
hosted,
onSubmit,
Expand Down
4 changes: 2 additions & 2 deletions src/components/modals/coresettings/EditCoreSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
<q-tooltip> Runs at 35mins past every hour </q-tooltip>
</q-checkbox>
</q-card-section>
<q-card-section class="row">
<q-card-section v-if="!hosted" class="row">
<q-checkbox
v-model="settings.enable_server_scripts"
label="Enable server scripts"
>
<q-tooltip>Allow running scripts on TRMM server</q-tooltip>
</q-checkbox>
</q-card-section>
<q-card-section class="row">
<q-card-section v-if="!hosted" class="row">
<q-checkbox
v-model="settings.enable_server_webterminal"
label="Enable web terminal"
Expand Down

0 comments on commit fd9f1bc

Please sign in to comment.