Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-06-05 17:26:58 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-06-05 17:26:58 +0300
commit6949c295864f52379a1be924e7c3ec441bad468f (patch)
treeafa04a35b41f017f4e22793290f50694712b71be /core/src
parent2a845285be9267eb4d4832c8c146b318135e11c6 (diff)
Fix linting on systemtags and use @nextcloud/router
Makes the linter happy. And thus me a bit happy since it now is complaining less. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/systemtags/systemtagmodel.js8
-rw-r--r--core/src/systemtags/systemtagsmappingcollection.js4
2 files changed, 7 insertions, 5 deletions
diff --git a/core/src/systemtags/systemtagmodel.js b/core/src/systemtags/systemtagmodel.js
index b3490c0ddfe..af0c863c69e 100644
--- a/core/src/systemtags/systemtagmodel.js
+++ b/core/src/systemtags/systemtagmodel.js
@@ -11,10 +11,10 @@
(function(OC) {
_.extend(OC.Files.Client, {
- PROPERTY_FILEID: '{' + OC.Files.Client.NS_OWNCLOUD + '}id',
+ PROPERTY_FILEID: '{' + OC.Files.Client.NS_OWNCLOUD + '}id',
PROPERTY_CAN_ASSIGN: '{' + OC.Files.Client.NS_OWNCLOUD + '}can-assign',
- PROPERTY_DISPLAYNAME: '{' + OC.Files.Client.NS_OWNCLOUD + '}display-name',
- PROPERTY_USERVISIBLE: '{' + OC.Files.Client.NS_OWNCLOUD + '}user-visible',
+ PROPERTY_DISPLAYNAME: '{' + OC.Files.Client.NS_OWNCLOUD + '}display-name',
+ PROPERTY_USERVISIBLE: '{' + OC.Files.Client.NS_OWNCLOUD + '}user-visible',
PROPERTY_USERASSIGNABLE: '{' + OC.Files.Client.NS_OWNCLOUD + '}user-assignable',
})
@@ -36,7 +36,7 @@
},
davProperties: {
- 'id': OC.Files.Client.PROPERTY_FILEID,
+ 'id': OC.Files.Client.PROPERTY_FILEID,
'name': OC.Files.Client.PROPERTY_DISPLAYNAME,
'userVisible': OC.Files.Client.PROPERTY_USERVISIBLE,
'userAssignable': OC.Files.Client.PROPERTY_USERASSIGNABLE,
diff --git a/core/src/systemtags/systemtagsmappingcollection.js b/core/src/systemtags/systemtagsmappingcollection.js
index 834ba57f945..0b2cd4ce477 100644
--- a/core/src/systemtags/systemtagsmappingcollection.js
+++ b/core/src/systemtags/systemtagsmappingcollection.js
@@ -8,6 +8,8 @@
*
*/
+import { generateRemoteUrl } from '@nextcloud/router'
+
(function(OC) {
/**
* @class OC.SystemTags.SystemTagsMappingCollection
@@ -43,7 +45,7 @@
model: OC.SystemTags.SystemTagModel,
url: function() {
- return OC.linkToRemote('dav') + '/systemtags-relations/' + this._objectType + '/' + this._objectId
+ return generateRemoteUrl('dav') + '/systemtags-relations/' + this._objectType + '/' + this._objectId
},
/**