mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
renamed service variables to conform to new naming scheme
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user