Skip to content

Commit

Permalink
do not show edit plugin modal when is osnap
Browse files Browse the repository at this point in the history
Signed-off-by: ryanwolhuter <dev@ryanwolhuter.com>
  • Loading branch information
ryanwolhuter committed Oct 25, 2023
1 parent be564cf commit eda8f12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/SettingsPluginsBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const modalPluginsOpen = ref(false);
function handleEditPlugins(name: string) {
if (props.isViewOnly) return;
// the oSnap plugin does not require any configuration
// so we don't need to open the modal
if (name === 'oSnap') return;
currentPlugin.value = {};
currentPlugin.value[name] = clone(form.value.plugins[name]);
modalPluginsOpen.value = true;
Expand Down

0 comments on commit eda8f12

Please sign in to comment.