-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #541 from nextcloud/fix/quota-links
Fix quota links in files
- Loading branch information
Showing
6 changed files
with
87 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import {loadState} from '@nextcloud/initial-state' | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const state = loadState('external', 'external-quota-sites') | ||
|
||
for (const site of state) { | ||
const image = document.createElement('img') | ||
image.src = site.image | ||
|
||
const icon = document.createElement('div') | ||
icon.classList.add('app-navigation-entry-icon') | ||
icon.append(image) | ||
|
||
const name = document.createElement('span') | ||
name.classList.add('app-navigation-entry__name') | ||
name.innerText = site.name | ||
|
||
const a = document.createElement('a') | ||
a.classList.add('app-navigation-entry-link') | ||
a.href = site.href | ||
a.append(icon) | ||
a.append(name) | ||
|
||
const div = document.createElement('div') | ||
div.classList.add('app-navigation-entry') | ||
div.append(a) | ||
|
||
const li = document.createElement('li') | ||
li.append(div) | ||
|
||
document.getElementsByClassName('app-navigation-entry__settings')[0].prepend(li) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters