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