renamed service variables to conform to new naming scheme

This commit is contained in:
azivner
2018-03-25 13:41:29 -04:00
parent d746d707b5
commit 297a2cd9da
31 changed files with 121 additions and 176 deletions

View File

@@ -1,6 +1,4 @@
"use strict";
import noteDetail from '../services/note_detail.js';
import noteDetailService from '../services/note_detail.js';
import utils from '../services/utils.js';
const $showDialogButton = $(".show-labels-button");
@@ -17,7 +15,7 @@ function LabelsModel() {
this.labels = ko.observableArray();
this.loadLabels = async function() {
const noteId = noteDetail.getCurrentNoteId();
const noteId = noteDetailService.getCurrentNoteId();
const labels = await server.get('notes/' + noteId + '/labels');
@@ -81,7 +79,7 @@ function LabelsModel() {
return;
}
const noteId = noteDetail.getCurrentNoteId();
const noteId = noteDetailService.getCurrentNoteId();
const labelsToSave = self.labels()
.map(attr => attr())
@@ -95,7 +93,7 @@ function LabelsModel() {
utils.showMessage("Labels have been saved.");
noteDetail.loadLabelList();
noteDetailService.loadLabelList();
};
function addLastEmptyRow() {