Skip to content
Snippets Groups Projects
Commit ff85da1f authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Use Nextcloud icon directly in file handling component

parent 0f2421d0
No related branches found
No related tags found
No related merge requests found
Pipeline #44230 failed
......@@ -993,28 +993,6 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
return this.nextcloudFileURL + this.directoryPath;
}
getCloudLogo() {
let cloudLogo = html `<dbp-icon name="cloud" class="nextcloud-logo-icon"></dbp-icon>`;
if (this.nextcloudName === "TU Graz cloud") {
cloudLogo = html`
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 97.6 81.74">
<g>
<path d="M89.8,22.7a28.51,28.51,0,0,0-16.9-9.1,27.84,27.84,0,0,0-14.8-12A24,24,0,0,0,48.9,0,28.36,28.36,0,0,0,20.6,27.4,22.42,22.42,0,0,0,13,70.11v-6.3A16.7,16.7,0,0,1,5.5,50a17,17,0,0,1,17-17h3.6V28.5A23,23,0,0,1,49,5.6a19.75,19.75,0,0,1,7.2,1.2h.1A22.48,22.48,0,0,1,68.9,17.5l.6,1.3,1.4.2a23.07,23.07,0,0,1,14.9,7.5,23.85,23.85,0,0,1-1.23,33.74v7A29.56,29.56,0,0,0,89.8,22.7Z"/>
<g>
<path d="M16.39,71.61H36.65V51.36H16.39Z" style="fill: #e4154b"/>
<path d="M38.67,71.61H58.93V51.36H38.67Z" style="fill: #e4154b"/>
<path d="M61,71.61H81.21V51.36H61Z" style="fill: #e4154b"/>
<path d="M26.52,81.74H46.78V61.49H26.52Z" style="fill: #e4154b"/>
<path d="M50.83,61.49H71.08V41.23H50.83Z" style="fill: #e4154b"/>
</g>
</g>
</svg>
`;
}
return cloudLogo;
}
static get styles() {
// language=css
return css`
......@@ -1453,7 +1431,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
<link rel="stylesheet" href="${tabulatorCss}">
<div class="nextcloud-intro ${classMap({hidden: this.isPickerActive})}">
<div class="nextcloud-logo ${classMap({"nextcloud-logo-sm": this.isPickerActive})}">
${this.getCloudLogo()}
<dbp-icon name="nextcloud" class="nextcloud-logo-icon"></dbp-icon>
</div>
<div class="block text-center ${classMap({hidden: this.isPickerActive})}">
<h2 class="m-inherit">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment