Bugfix: toggle favorite on the first page

This commit is contained in:
Scharel Clemens 2018-11-18 13:20:17 +01:00
parent b2284de2e1
commit 1035055e29
3 changed files with 7 additions and 8 deletions

View file

@ -97,7 +97,7 @@ Dialog {
width: parent.width - 2*x
wrapMode: Text.Wrap
color: Theme.secondaryColor
text: qsTr("Please consider creating a dedicated app password! Open your Nextcloud in a browser and go to <i>Settings</i> → <i>Security</i>.")
text: qsTr("<strong>CAUTION: Your password will be saved without any encryption on the device!</strong><br>Please consider creating a dedicated app password! Open your Nextcloud in a browser and go to <i>Settings</i> → <i>Security</i>.")
}
/*TextSwitch {
id: unsecureConnectionTextSwitch

View file

@ -84,8 +84,7 @@ Page {
(note.highlighted ? Theme.secondaryHighlightColor : Theme.secondaryColor)
onClicked: {
console.log("Toggle favorite")
favorite = !favorite
nextcloudAccounts.itemAt(appSettings.currentAccount).updateNote(id, {'favorite': favorite} )
nextcloudAccounts.itemAt(appSettings.currentAccount).updateNote(id, {'favorite': !favorite} )
}
}

View file

@ -26,11 +26,11 @@
<context>
<name>EditPage</name>
<message>
<source>Markdown Cheatsheet</source>
<source>Category</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Category</source>
<source>Reset</source>
<translation type="unfinished"></translation>
</message>
</context>
@ -65,11 +65,11 @@
<translation></translation>
</message>
<message>
<source>Please consider creating a dedicated app password! Open your Nextcloud in a browser and go to &lt;i&gt;Settings&lt;/i&gt; → &lt;i&gt;Security&lt;/i&gt;.</source>
<source>Unnamed account</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unnamed account</source>
<source>&lt;strong&gt;CAUTION: Your password will be saved without any encryption on the device!&lt;/strong&gt;&lt;br&gt;Please consider creating a dedicated app password! Open your Nextcloud in a browser and go to &lt;i&gt;Settings&lt;/i&gt; &lt;i&gt;Security&lt;/i&gt;.</source>
<translation type="unfinished"></translation>
</message>
</context>
@ -146,7 +146,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>Nextclound Notes</source>
<source>Deleting note</source>
<translation type="unfinished"></translation>
</message>
</context>