SUPPORT-9561: add text for not found case
This commit is contained in:
parent
00461a5003
commit
ed10c14bb2
2 changed files with 65 additions and 0 deletions
|
|
@ -20,6 +20,10 @@ export class ErvuFileRequestDialogButton extends Behavior implements OnDestroy {
|
||||||
@NotNull()
|
@NotNull()
|
||||||
public downloadButton: AbstractButton;
|
public downloadButton: AbstractButton;
|
||||||
|
|
||||||
|
@ObjectRef()
|
||||||
|
@NotNull()
|
||||||
|
public notFoundText: Text;
|
||||||
|
|
||||||
@NotNull()
|
@NotNull()
|
||||||
public requestSentMsg: string;
|
public requestSentMsg: string;
|
||||||
|
|
||||||
|
|
@ -57,6 +61,7 @@ export class ErvuFileRequestDialogButton extends Behavior implements OnDestroy {
|
||||||
}
|
}
|
||||||
this.downloadButton.setEnabled(status === ExcerptStatus.READY);
|
this.downloadButton.setEnabled(status === ExcerptStatus.READY);
|
||||||
this.downloadButton.setVisible(status === ExcerptStatus.READY);
|
this.downloadButton.setVisible(status === ExcerptStatus.READY);
|
||||||
|
this.notFoundText.setVisible(status === ExcerptStatus.NOT_FOUND);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2137,6 +2137,12 @@
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
|
<key>notFoundText</key>
|
||||||
|
<value>
|
||||||
|
<simple>{"objectId":"06657c0b-4e2e-402b-a40b-099d15da551d","packageName":"component","className":"Text","type":"TS"}</simple>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
<key>requestSentMsg</key>
|
<key>requestSentMsg</key>
|
||||||
<value>
|
<value>
|
||||||
<simple>"Запрос на формирование выписки отправлен"</simple>
|
<simple>"Запрос на формирование выписки отправлен"</simple>
|
||||||
|
|
@ -2202,6 +2208,60 @@
|
||||||
</properties>
|
</properties>
|
||||||
</scripts>
|
</scripts>
|
||||||
</children>
|
</children>
|
||||||
|
<children id="06657c0b-4e2e-402b-a40b-099d15da551d">
|
||||||
|
<prototypeId>ba24d307-0b91-4299-ba82-9d0b52384ff2</prototypeId>
|
||||||
|
<componentRootId>06657c0b-4e2e-402b-a40b-099d15da551d</componentRootId>
|
||||||
|
<name>Выписка не найдена</name>
|
||||||
|
<container>false</container>
|
||||||
|
<childrenReordered>false</childrenReordered>
|
||||||
|
<scripts id="cf4526a1-96ab-4820-8aa9-62fb54c2b64c">
|
||||||
|
<properties>
|
||||||
|
<entry>
|
||||||
|
<key>collectible</key>
|
||||||
|
<value>
|
||||||
|
<simple>false</simple>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key>initialValue</key>
|
||||||
|
<value>
|
||||||
|
<simple>"Выписка по предыдущему запросу не найдена"</simple>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key>style</key>
|
||||||
|
<value>
|
||||||
|
<complex>
|
||||||
|
<entry>
|
||||||
|
<key>margin</key>
|
||||||
|
<value>
|
||||||
|
<simple>"16px"</simple>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key>padding</key>
|
||||||
|
<value>
|
||||||
|
<simple>"12px 0 0"</simple>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
</complex>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key>visible</key>
|
||||||
|
<value>
|
||||||
|
<simple>false</simple>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
</properties>
|
||||||
|
</scripts>
|
||||||
|
<scripts id="737b67e2-295f-4356-a1e1-9419344d8c85"/>
|
||||||
|
<scripts id="a6ccccd9-354c-4725-9d34-c716cf626048"/>
|
||||||
|
<scripts id="d38c1af5-2bfe-41cd-ab0f-67040f498127"/>
|
||||||
|
<scripts id="f203f156-be32-4131-9c86-4d6bac6d5d56">
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</scripts>
|
||||||
|
</children>
|
||||||
<children id="cb657c69-1023-4462-ada6-03c1a9fbcb8e">
|
<children id="cb657c69-1023-4462-ada6-03c1a9fbcb8e">
|
||||||
<prototypeId>86f297f1-ab3d-40e0-ac2f-89cc944b7f0a</prototypeId>
|
<prototypeId>86f297f1-ab3d-40e0-ac2f-89cc944b7f0a</prototypeId>
|
||||||
<componentRootId>cb657c69-1023-4462-ada6-03c1a9fbcb8e</componentRootId>
|
<componentRootId>cb657c69-1023-4462-ada6-03c1a9fbcb8e</componentRootId>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue