Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dinger1986 add confirm and info for enable sync #26

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading