Bug/a few fixes (#158)
* Change default instance * Fix cropped buttons * Lint fix * changelog --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
cb877f9415
commit
256fc22bd9
7 files changed
+11
-8
No files matched your search
+3
-1
@@ -1,4 +1,5 @@
|
||||
import "pkg:/components/Navigation/Navigation.bs"
|
||||
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function Init()
|
||||
@@ -29,6 +30,7 @@ function Init()
|
||||
SetNavigation(m.testButton, "right", m.saveButton)
|
||||
|
||||
m.currentNavigtionNode = m.editButton
|
||||
m.textEditBox.hintText = `e.g. ${Invidious.DEFAULT_INSTANCE}`
|
||||
end function
|
||||
|
||||
function OnFocusChange() as void
|
||||
@@ -76,7 +78,7 @@ end function
|
||||
function OnEditButtonSelected()
|
||||
keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog")
|
||||
keyboardDialog.title = "Edit Instance"
|
||||
keyboardDialog.message = ["Enter the instance url (e.g. https://vid.puffyan.us)"]
|
||||
keyboardDialog.message = [`Enter the instance url (e.g. ${Invidious.DEFAULT_INSTANCE})`]
|
||||
keyboardDialog.text = m.top.text
|
||||
keyboardDialog.buttons = ["OK", "Cancel"]
|
||||
keyboardDialog.observeField("buttonSelected", FuncName(OnKeyboardButton))
|
||||
|
||||
Reference in new issue
Block a user