feat: button to open view settings tab

This commit is contained in:
Fabio Di Stasio 2023-07-07 09:04:40 +02:00
parent 9d90dc362e
commit 32bbc45329
1 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,6 @@
<div class="divider-vert py-3" /> <div class="divider-vert py-3" />
<button <button
v-if="isTable"
class="btn btn-dark btn-sm" class="btn btn-dark btn-sm"
:disabled="isQuering" :disabled="isQuering"
:title="t('word.settings')" :title="t('word.settings')"
@ -447,13 +446,14 @@ const openTableSettingTab = () => {
uid: workspace.value.uid, uid: workspace.value.uid,
elementName: props.table, elementName: props.table,
schema: props.schema, schema: props.schema,
type: 'table-props', type: isTable.value ? 'table-props' : 'view-props',
elementType: 'table' elementType: isTable.value ? 'table' : 'view'
}); });
changeBreadcrumbs({ changeBreadcrumbs({
schema: props.schema, schema: props.schema,
table: props.table table: isTable.value ? props.table : null,
view: !isTable.value ? props.table : null
}); });
}; };