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>
pull/21257/head
Roeland Jago Douma 6 years ago
parent 2a845285be
commit 6949c29586
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 4
      core/js/dist/systemtags.js
  2. 2
      core/js/dist/systemtags.js.map
  3. 8
      core/src/systemtags/systemtagmodel.js
  4. 4
      core/src/systemtags/systemtagsmappingcollection.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -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,

@ -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
},
/**

Loading…
Cancel
Save