get note name from api
This commit is contained in:
parent
d73e065805
commit
e89f9f74fe
@ -12,6 +12,6 @@ namespace BinaryDad.Notes.Controllers
|
||||
this.noteService = noteService;
|
||||
}
|
||||
|
||||
public string Note() => noteService.Get();
|
||||
public string Note(string noteName) => noteService.GetText(noteName);
|
||||
}
|
||||
}
|
||||
|
@ -55,9 +55,10 @@ $(function () {
|
||||
showToast('#update-indicator');
|
||||
});
|
||||
|
||||
|
||||
// update content after reconnected
|
||||
connection.onreconnected(function() {
|
||||
$.get('api/note', function(content) {
|
||||
$.get(`api/note?noteName=${noteName}`, function(content) {
|
||||
$textarea.val(content);
|
||||
showToast('#update-indicator');
|
||||
console.log('Refreshed after disconnect');
|
||||
|
Loading…
x
Reference in New Issue
Block a user