diff --git a/src/app/send/add-edit.component.html b/src/app/send/add-edit.component.html index 47ef07ce..2ce51ad7 100644 --- a/src/app/send/add-edit.component.html +++ b/src/app/send/add-edit.component.html @@ -1,97 +1,106 @@ -
-
-
-
- {{'editSend' | i18n}} -
-
-
- - + +
+
+
+
+
+ {{'editSend' | i18n}} +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
-
- - +
+
+ {{'options' | i18n}} +
+
+
+ + +
{{'deletionDateDesc' | i18n}}
+
+
+ + +
{{'expirationDateDesc' | i18n}}
+
+
-
- - +
+
+
+ + +
{{'maxAccessCountDesc' | i18n}}
+
+
+ + +
+
-
- - +
+
+
+ + +
{{'sendPasswordDesc' | i18n}}
+
+
+
+
+
+ {{'notes' | i18n}} +
+
+
+ + {{'sendNotesDesc' | i18n}} +
+
+
+
+
+
+ + +
+
+
+
+
+ {{'share' | i18n}} +
+
+
+ + +
+
-
-
- {{'options' | i18n}} -
-
-
- - -
{{'deletionDateDesc' | i18n}}
-
-
- - -
{{'expirationDateDesc' | i18n}}
-
-
+ -
-
-
- - -
{{'maxAccessCountDesc' | i18n}}
-
-
- - -
-
-
-
-
-
- - -
{{'sendPasswordDesc' | i18n}}
-
-
-
-
-
- {{'notes' | i18n}} -
-
-
- - {{'sendNotesDesc' | i18n}} -
-
-
-
-
-
- - -
-
-
-
-
- {{'share' | i18n}} -
-
-
- - -
-
-
-
-
+ + diff --git a/src/app/send/add-edit.component.ts b/src/app/send/add-edit.component.ts index e32ea32c..bc9ccaa2 100644 --- a/src/app/send/add-edit.component.ts +++ b/src/app/send/add-edit.component.ts @@ -28,5 +28,9 @@ export class AddEditComponent extends BaseAddEditComponent { async refresh() { const send = await this.loadSend(); this.send = await send.decrypt(); + this.hasPassword = this.send.password != null && this.send.password.trim() !== ''; + this.deletionDate = this.dateToString(this.send.deletionDate); + this.expirationDate = this.dateToString(this.send.expirationDate); + this.password = null; } } diff --git a/src/app/send/send.component.html b/src/app/send/send.component.html index 2fd22a56..ade3c846 100644 --- a/src/app/send/send.component.html +++ b/src/app/send/send.component.html @@ -67,7 +67,7 @@
- +