Skip to content

Commit

Permalink
fix: etag
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Oct 23, 2023
1 parent 4d1d26a commit 45de90c
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/components/telegram/bot/links/details.panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,6 @@
<ext-button iconCls="fa-solid fa-xmark" :tooltip="l10n(`Cancel`)" ui="decline" @tap="cancelEditName"/>
</ext-container>

<!-- view -->
<!-- <ext-panel bind='{"hidden":"{editStarted}"}' layout="vbox"> -->
<!-- <ext-displayfield bind="{telegramBotLinkRecord.name}" :label="l10n(`Name`)"/> -->

<!-- <ext-textareafield bind="{telegramBotLinkRecord.description}" height="150" :label="l10n(`Description`)" readOnly="true"/> -->
<!-- </ext-panel> -->

<!-- <!-&#45; edit &#45;-> -->
<!-- <ext-fieldpanel ref="form" bind='{"hidden":"{!editStarted}"}' layout="vbox" trackResetOnLoad="true"> -->
<!-- <ext-textfield :label="l10n(`Name`)" name="name" required="truw"/> -->

<!-- <ext-textareafield height="150" :label="l10n(`Description`)" name="description"/> -->
<!-- </ext-fieldpanel> -->

<ext-panel defaults='{"labelAlign":"left","labelWidth":150}' padding="0 0 0 10">
<ext-displayfield bind="{record.created_html}" :label="l10n(`Creation date`)"/>

Expand All @@ -52,6 +38,23 @@
<ext-displayfield bind="{record.total_banned_users_text}" :label="l10n(`Total banned users`)"/>
</ext-panel>

<ext-container bind='{"hidden":"{editDescription}"}' layout="hbox">
<ext-textareafield bind="{telegramBotLinkRecord.description}" flex="1" height="150" :label="l10n(`Description`)" readOnly="true"/>
<ext-spacer/>

<ext-button bind='{"hidden":"{!telegramBotRecord.can_update_link}"}' iconCls="fa-solid fa-pen" :tooltip="l10n(`Edit`)" @tap="beginEditDescription"/>
</ext-container>

<ext-container bind='{"hidden":"{!editDescription}"}' layout="hbox">
<ext-textareafield ref="descriptionEditField" height="150" :label="l10n(`Description`)"/>

<ext-spacer/>

<ext-button iconCls="fa-solid fa-check" :tooltip="l10n(`Save`)" @tap="saveDescription"/>

<ext-button iconCls="fa-solid fa-xmark" :tooltip="l10n(`Cancel`)" ui="decline" @tap="cancelEditDescription"/>
</ext-container>

<ext-button bind='{"hidden":"{!telegramBotRecord.can_delete_link}"}' iconCls="fa-solid fa-trash-alt" :text="l10n(`Delete`)" ui="decline" @tap="_deleteLink"/>
</ext-panel>
</template>
Expand Down

0 comments on commit 45de90c

Please sign in to comment.