Skip to content

Commit

Permalink
theme
Browse files Browse the repository at this point in the history
  • Loading branch information
elizavetaRa committed May 18, 2021
1 parent 7f2d3f0 commit 0d0da9e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions packages/web-app-files/src/views/SharedWithMe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<oc-button
v-if="
filterDataByStatus(activeFiles, shareStatus.pending).length === 0 &&
!getShowDeclined()
!getShowDeclined()
"
class="oc-ml-m"
v-translate
class="oc-ml-m"
appearance="raw"
@click="setShowDeclined(true)"
>Show declined shares</oc-button
Expand Down Expand Up @@ -73,7 +73,7 @@
<div
v-if="
getShowAllPending() === false &&
filterDataByStatus(activeFiles, shareStatus.pending).length > 3
filterDataByStatus(activeFiles, shareStatus.pending).length > 3
"
class="oc-app-bar centered"
>
Expand All @@ -85,7 +85,7 @@
<div
v-else-if="
getShowAllPending() === true &&
filterDataByStatus(activeFiles, shareStatus.pending).length > 3
filterDataByStatus(activeFiles, shareStatus.pending).length > 3
"
class="oc-app-bar centered"
>
Expand Down Expand Up @@ -298,7 +298,7 @@ export default {
mixins: [FileActions, MixinFilesListPositioning],
data: () => ({
loading: true,
shareStatus,
shareStatus
}),
computed: {
...mapState(['app']),
Expand All @@ -308,7 +308,7 @@ export default {
'activeFiles',
'selectedFiles',
'inProgress',
'activeFilesCount',
'activeFilesCount'
]),
...mapGetters(['isOcis', 'configuration', 'getToken', 'user']),
selected: {
Expand All @@ -317,7 +317,7 @@ export default {
},
set(resources) {
this.SELECT_RESOURCES(resources)
},
}
},
isEmpty() {
return this.activeFiles.length < 1
Expand All @@ -333,12 +333,12 @@ export default {
},
displayPreviews() {
return !this.configuration.options.disablePreviews
},
}
},
watch: {
uploadProgressVisible() {
this.adjustTableHeaderPosition()
},
}
},
created() {
this.loadResources()
Expand All @@ -354,7 +354,7 @@ export default {
'LOAD_FILES',
'SELECT_RESOURCES',
'CLEAR_CURRENT_FILES_LIST',
'UPDATE_RESOURCE',
'UPDATE_RESOURCE'
]),
...mapMutations(['SET_QUOTA']),
setShowDeclined(value) {
Expand All @@ -372,15 +372,15 @@ export default {
return showAllPending
},
filterDataByStatus(data, status) {
return data.filter((item) => item.status === status)
return data.filter(item => item.status === status)
},
async loadResources() {
this.loading = true
this.CLEAR_CURRENT_FILES_LIST()
let resources = await this.$client.requests.ocs({
service: 'apps/files_sharing',
action: '/api/v1/shares?format=json&shared_with_me=true&state=all&include_tags=false',
method: 'GET',
method: 'GET'
})
let rootFolder = await this.$client.files.fileInfo('/', this.davProperties)
resources = await resources.json()
Expand Down Expand Up @@ -408,7 +408,7 @@ export default {
isPublic: false,
mediaSource: this.mediaSource,
encodePath: this.encodePath,
headers: this.requestHeaders,
headers: this.requestHeaders
})
}
// Load quota
Expand All @@ -433,7 +433,7 @@ export default {
let response = await this.$client.requests.ocs({
service: 'apps/files_sharing',
action: `api/v1/shares/pending/${resource.share.id}`,
method: type,
method: type
})
// exit on failure
Expand Down Expand Up @@ -473,12 +473,12 @@ export default {
desc: error.message,
status: 'danger',
autoClose: {
enabled: true,
},
enabled: true
}
})
}
},
},
}
}
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion packages/web-runtime/themes/owncloud/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"slogan": "ownCloud – A safe home for all your data"
},
"logo": {
"sidebar": "themes/owncloud/assets/logo.svg",
"sidebar": "themes/owncloud/assets/cernbox-lrg.svg",
"favicon": "themes/owncloud/assets/favicon.jpg",
"login": "themes/owncloud/assets/logo.svg",
"notFound": "themes/owncloud/assets/cloud.svg"
Expand Down

0 comments on commit 0d0da9e

Please sign in to comment.