Skip to content

Commit

Permalink
Merge pull request #26 from dinger1986/dinger1986-add-confirm-and-inf…
Browse files Browse the repository at this point in the history
…o-for-enable-sync

Dinger1986 add confirm and info for enable sync
  • Loading branch information
wh1te909 authored Mar 23, 2024
2 parents fc5195e + 0290002 commit 6c33676
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions src/components/modals/coresettings/EditCoreSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,25 @@
</q-card-section>
<q-card-section class="row" v-if="!hosted">
<div class="col-4 flex items-center">
Sync MeshCentral Users/Permissions with TRMM:
Sync MeshCentral Perms with TRMM:
<q-icon
right
name="ion-information-circle-outline"
size="sm"
class="cursor-pointer"
>
<q-tooltip class="text-caption">
It is recommended to keep this option enabled;
otherwise, all TRMM users will have full permissions in
MeshCentral regardless of their permissions in TRMM.
</q-tooltip>
</q-icon>
</div>
<div class="col-2"></div>
<q-checkbox
dense
v-model="settings.sync_mesh_with_trmm"
:model-value="settings.sync_mesh_with_trmm"
@update:model-value="confirmSyncChange"
class="col-6"
/>
</q-card-section>
Expand Down Expand Up @@ -712,6 +725,19 @@ export default {
}));
});
},
confirmSyncChange(newValue) {
this.$q
.dialog({
title: "Are you sure?",
message:
"This operation may take several minutes to complete in the background and can be very CPU/disk intensive, depending on your hardware and number of agents. Please allow time for the sync to fully complete.",
ok: { label: "Yes", color: "primary" },
cancel: { label: "No", color: "negative" },
})
.onOk(() => {
this.settings.sync_mesh_with_trmm = newValue;
});
},
showResetPatchPolicy() {
this.$q.dialog({
component: ResetPatchPolicy,
Expand Down

0 comments on commit 6c33676

Please sign in to comment.