@@ -496,7 +496,7 @@ export default {
496496 return
497497 }
498498 this .tags = []
499- api (' listTags' , { ' listall' : true , ' resourceid' : this .resource .id , ' resourcetype' : this .resourceType }).then (json => {
499+ api (' listTags' , { listall: true , resourceid: this .resource .id , resourcetype: this .resourceType }).then (json => {
500500 if (json .listtagsresponse && json .listtagsresponse .tag ) {
501501 this .tags = json .listtagsresponse .tag
502502 }
@@ -507,7 +507,7 @@ export default {
507507 return
508508 }
509509 this .notes = []
510- api (' listAnnotations' , { ' entityid' : this .resource .id , ' entitytype' : this .annotationType }).then (json => {
510+ api (' listAnnotations' , { entityid: this .resource .id , entitytype: this .annotationType }).then (json => {
511511 if (json .listannotationsresponse && json .listannotationsresponse .annotation ) {
512512 this .notes = json .listannotationsresponse .annotation
513513 }
@@ -527,8 +527,8 @@ export default {
527527 },
528528 handleInputConfirm () {
529529 const args = {}
530- args[ ' resourceids' ] = this .resource .id
531- args[ ' resourcetype' ] = this .resourceType
530+ args . resourceids = this .resource .id
531+ args . resourcetype = this .resourceType
532532 args[' tags[0].key' ] = this .inputKey
533533 args[' tags[0].value' ] = this .inputValue
534534 api (' createTags' , args).then (json => {
@@ -542,8 +542,8 @@ export default {
542542 },
543543 handleDeleteTag (tag ) {
544544 const args = {}
545- args[ ' resourceids' ] = tag .resourceid
546- args[ ' resourcetype' ] = tag .resourcetype
545+ args . resourceids = tag .resourceid
546+ args . resourcetype = tag .resourcetype
547547 args[' tags[0].key' ] = tag .key
548548 args[' tags[0].value' ] = tag .value
549549 api (' deleteTags' , args).then (json => {
@@ -560,9 +560,9 @@ export default {
560560 }
561561 this .showNotesInput = false
562562 const args = {}
563- args[ ' entityid' ] = this .resource .id
564- args[ ' entitytype' ] = this .annotationType
565- args[ ' annotation' ] = this .annotation
563+ args . entityid = this .resource .id
564+ args . entitytype = this .annotationType
565+ args . annotation = this .annotation
566566 api (' addAnnotation' , args).then (json => {
567567 }).finally (e => {
568568 this .getNotes ()
@@ -571,7 +571,7 @@ export default {
571571 },
572572 deleteNote (annotation ) {
573573 const args = {}
574- args[ ' id ' ] = annotation .id
574+ args . id = annotation .id
575575 api (' removeAnnotation' , args).then (json => {
576576 }).finally (e => {
577577 this .getNotes ()
0 commit comments