ButtonEx (#319)
* Finish buttons * optional animation * Lint fix * Remove test stuff * Lint fix * Use button --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
bfd4f3e298
commit
750e24f724
13 files changed
+563
-64
No files matched your search
@@ -288,10 +288,10 @@ function OnAuthorIdChange()
|
||||
end function
|
||||
|
||||
function SetSubscribeButtonVisibility()
|
||||
isLogged = IsLoggedIn()
|
||||
m.subscribeButton.visible = isLogged and not StringUtils.IsNullOrEmpty(m.top.authorId)
|
||||
m.subscribeButton.focusable = m.subscribeButton.visible
|
||||
if not m.subscribeButton.visible and m.subscribeButton.hasFocus()
|
||||
isEnabled = IsLoggedIn() and not StringUtils.IsNullOrEmpty(m.top.authorId)
|
||||
m.subscribeButton.visible = isEnabled
|
||||
m.subscribeButton.focusable = isEnabled
|
||||
if not isEnabled and m.subscribeButton.hasFocus()
|
||||
NodeSetFocus(m.rowList, true)
|
||||
end if
|
||||
end function
|
||||
|
||||
Reference in new issue
Block a user