🐛 Fixed empty application name on authorize page
This commit is contained in:
parent
d02a35c897
commit
83b3b21c6b
6 changed files with 15 additions and 8 deletions
|
@ -13,7 +13,7 @@
|
|||
"type": "string",
|
||||
"underlyingType": "string",
|
||||
"argNum": 1,
|
||||
"expr": "p.Client.GetName()"
|
||||
"expr": "name"
|
||||
}
|
||||
],
|
||||
"fuzzy": true
|
||||
|
@ -46,6 +46,13 @@
|
|||
"translatorComment": "The name of the button to continue the application authorization process",
|
||||
"fuzzy": true
|
||||
},
|
||||
{
|
||||
"id": "version",
|
||||
"message": "version",
|
||||
"translation": "version",
|
||||
"translatorComment": "Copied from source.",
|
||||
"fuzzy": true
|
||||
},
|
||||
{
|
||||
"id": "Error",
|
||||
"message": "Error",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"type": "string",
|
||||
"underlyingType": "string",
|
||||
"argNum": 1,
|
||||
"expr": "p.Client.GetName()"
|
||||
"expr": "name"
|
||||
}
|
||||
],
|
||||
"fuzzy": true
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"type": "string",
|
||||
"underlyingType": "string",
|
||||
"argNum": 1,
|
||||
"expr": "p.Client.GetName()"
|
||||
"expr": "name"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"type": "string",
|
||||
"underlyingType": "string",
|
||||
"argNum": 1,
|
||||
"expr": "p.Client.GetName()"
|
||||
"expr": "name"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
} %}
|
||||
|
||||
{% func (p *AuthorizePage) Title() %}
|
||||
{% if p.Client.GetName() == "" %}
|
||||
{%= p.T("Authorize %s", p.Client.GetName()) %}
|
||||
{% if name := p.Client.GetName(); name != "" %}
|
||||
{%= p.T("Authorize %s", name) %}
|
||||
{% else %}
|
||||
{%= p.T("Authorize application") %}
|
||||
{% endif %}
|
||||
|
|
|
@ -43,12 +43,12 @@ func (p *AuthorizePage) StreamTitle(qw422016 *qt422016.Writer) {
|
|||
qw422016.N().S(`
|
||||
`)
|
||||
//line web/authorize.qtpl:20
|
||||
if p.Client.GetName() == "" {
|
||||
if name := p.Client.GetName(); name != "" {
|
||||
//line web/authorize.qtpl:20
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line web/authorize.qtpl:21
|
||||
p.StreamT(qw422016, "Authorize %s", p.Client.GetName())
|
||||
p.StreamT(qw422016, "Authorize %s", name)
|
||||
//line web/authorize.qtpl:21
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
|
|
Loading…
Reference in a new issue