Skip to content

Commit

Permalink
Show template button on empty model page
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
  • Loading branch information
JustinGeorgi committed Dec 9, 2023
1 parent 1a21308 commit d7a0d20
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bundles/org.openhab.ui/web/src/pages/settings/model/model.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@
<f7-block v-else class="semantic-tree-wrapper" :class="{ 'sheet-opened' : detailsOpened }">
<f7-row>
<f7-col width="100" medium="50">
<empty-state-placeholder v-if="empty" icon="list_bullet_indent" title="model.title" text="model.text" />
<f7-block v-if="empty">
<empty-state-placeholder icon="list_bullet_indent" title="model.title" text="model.text" />
<f7-row class="display-flex justify-content-center">
<f7-button color="blue" large raised fill @click="addLocationTemplate()">
Create Locations From Templates
</f7-button>
</f7-row>
</f7-block>

<f7-block v-show="!empty" strong class="semantic-tree" no-gap @click.native="clearSelection">
<!-- <empty-state-placeholder v-if="empty" icon="list_bullet_indent" title="model.title" text="model.text" /> -->
<f7-treeview>
Expand Down Expand Up @@ -92,14 +100,6 @@
</f7-list>
</f7-card-content>
</f7-card>
<div><f7-block-title>Model Templates</f7-block-title></div>
<f7-card>
<f7-card-content>
<f7-list>
<f7-list-button color="blue" title="Location Templates" @click="addLocationTemplate()" />
</f7-list>
</f7-card-content>
</f7-card>
</f7-block>
</f7-col>
</f7-row>
Expand Down

0 comments on commit d7a0d20

Please sign in to comment.