Skip to content

Commit

Permalink
Merge pull request #11 from LukePulverenti/master
Browse files Browse the repository at this point in the history
fix config dialog
  • Loading branch information
bjoerns1983 authored Jan 11, 2023
2 parents 9942786 + fb4e1fe commit 46f77a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Emby.Plugin.TelegramNotification/Configuration/entryeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
EntryEditor.setObjectValues = function (context, entry) {

entry.FriendlyName = context.querySelector('.txtFriendlyName').value;
entry.Options.Token = context.querySelector('.BotToken').value;
entry.Options.Token = context.querySelector('.ChatID').value;
entry.Options.BotToken = context.querySelector('.txtTeleGramBotKey').value;
entry.Options.ChatID = context.querySelector('.txtTeleGramChatID').value;
};

EntryEditor.setFormValues = function (context, entry) {

context.querySelector('.txtFriendlyName').value = entry.FriendlyName || '';
context.querySelector('.BotToken').value = entry.Options.Token || '';
context.querySelector('.ChatID').value = entry.Options.Token || '';
context.querySelector('.txtTeleGramBotKey').value = entry.Options.BotToken || '';
context.querySelector('.txtTeleGramChatID').value = entry.Options.ChatID || '';
};

EntryEditor.loadTemplate = function (context) {
Expand Down

0 comments on commit 46f77a5

Please sign in to comment.