Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP new folder button on location picker #17353

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
</div>

<div class="spot-action-bar">
<div class="spot-action-bar--left">
<button type="button" class="spot-link spot-action-bar--action" (click)="newFolder()" >
<span class="spot-icon spot-icon_folder op-files-tab--icon op-files-tab--icon_forums"></span>
<span [textContent]="text.buttons.newFolder"></span>
</button>
</div>
<div class="spot-action-bar--right">
<button
type="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class LocationPickerModalComponent extends FilePickerBaseModalComponent {
submitEmptySelection: this.i18n.t('js.storages.file_links.selection_none'),
cancel: this.i18n.t('js.button_cancel'),
selectAll: this.i18n.t('js.storages.file_links.select_all'),
newFolder: this.i18n.t('js.storages.new_folder'),
},
tooltip: {
directory_not_writeable: this.i18n.t('js.storages.files.directory_not_writeable'),
Expand Down Expand Up @@ -144,6 +145,10 @@ export class LocationPickerModalComponent extends FilePickerBaseModalComponent {
this.service.close();
}

public newFolder():void {
// console.log("this button does nothing. To be implemented");
}

protected storageFileToListItem(file:IStorageFile, index:number):StorageFileListItem {
return new StorageFileListItem(
this.timezoneService,
Expand Down
1 change: 1 addition & 0 deletions modules/storages/config/locales/js-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ en:
open_storage: "Open %{storageType}"
select_location: "Select location"
choose_location: "Choose location"
new_folder: "New folder"

types:
nextcloud: "Nextcloud"
Expand Down
Loading