Skip to content
Snippets Groups Projects
Commit aea4eacd authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Add attribute select-button-text (#13)

parent d919b3bc
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
this.webDavUrl = '';
this.loginWindow = null;
this.isPickerActive = false;
this.selectButtonText = i18n.t('nextcloud-file-picker.select-files');
this.statusText = '';
this.lastDirectoryPath = '/';
this.directoryPath = '/';
......@@ -52,6 +53,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
directoryPath: { type: String, attribute: false },
allowedMimeTypes: { type: String, attribute: 'allowed-mime-types' },
directoriesOnly: { type: Boolean, attribute: 'directories-only' },
selectButtonText: { type: String, attribute: 'select-button-text' },
};
}
......@@ -319,7 +321,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
@click="${() => { this.loadDirectory(this.getParentDirectoryPath()); }}">&#8679;</button>
<table id="directory-content-table"></table>
<button class="button"
@click="${() => { this.downloadFiles(this.tabulatorTable.getSelectedData()); }}">${i18n.t('nextcloud-file-picker.select-files')}</button>
@click="${() => { this.downloadFiles(this.tabulatorTable.getSelectedData()); }}">${this.selectButtonText}</button>
</div>
`;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment