@@ -261,8 +261,6 @@ export default {
261261 autosave: { enabled: false , uniqueId: ' unique' },
262262 toolbar: false ,
263263 },
264- lastModifiedRelative: null ,
265- lastCreatedRemative: null ,
266264 descriptionSaveTimeout: null ,
267265 descriptionSaving: false ,
268266 hasActivity: capabilities && capabilities .activity ,
@@ -301,7 +299,7 @@ export default {
301299 return this .$store .getters .cardById (this .id )
302300 },
303301 subtitle () {
304- return t (' deck' , ' Modified' ) + ' : ' + this .lastModifiedRelative + ' ' + t (' deck' , ' Created' ) + ' : ' + this .lastCreatedRemative
302+ return t (' deck' , ' Modified' ) + ' : ' + this .relativeDate ( this . currentCard . lastModified * 1000 ) + ' ' + t (' deck' , ' Created' ) + ' : ' + this .relativeDate ( this . currentCard . createdAt * 1000 )
305303 },
306304 formatedAssignables () {
307305 return this .assignables .map (item => {
@@ -348,12 +346,6 @@ export default {
348346 this .initialize ()
349347 },
350348 },
351- created () {
352- setInterval (this .updateRelativeTimestamps , 10000 )
353- },
354- destroyed () {
355- clearInterval (this .updateRelativeTimestamps )
356- },
357349 mounted () {
358350 this .initialize ()
359351 },
@@ -381,7 +373,6 @@ export default {
381373 }
382374
383375 this .desc = this .currentCard .description
384- this .updateRelativeTimestamps ()
385376 },
386377 showEditor () {
387378 if (! this .canEdit ) {
@@ -427,10 +418,6 @@ export default {
427418 this .$store .dispatch (' updateCardDesc' , this .copiedCard )
428419 }
429420 },
430- updateRelativeTimestamps () {
431- this .lastModifiedRelative = OC .Util .relativeModifiedDate (this .currentCard .lastModified * 1000 )
432- this .lastCreatedRemative = OC .Util .relativeModifiedDate (this .currentCard .createdAt * 1000 )
433- },
434421 setDue () {
435422 this .$store .dispatch (' updateCardDue' , this .copiedCard )
436423 },
0 commit comments