~vthompson/music-app/static-now-playing-sidepanel

« back to all changes in this revision

Viewing changes to app/components/Dialog/RemovePlaylistDialog.qml

  • Committer: Andrew Hayzen
  • Date: 2015-06-28 03:17:10 UTC
  • mfrom: (846.2.30 refactor)
  • Revision ID: ahayzen@gmail.com-20150628031710-5di845pa3qsnkh26
* Merge of lp:music-app/refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
 */
19
19
 
20
 
import QtQuick 2.3
21
 
import Ubuntu.Components 1.1
 
20
import QtQuick 2.4
 
21
import Ubuntu.Components 1.2
22
22
import Ubuntu.Components.Popups 1.0
23
23
import QtQuick.LocalStorage 2.0
24
24
import "../../logic/meta-database.js" as Library
26
26
 
27
27
Dialog {
28
28
    id: dialogRemovePlaylist
 
29
    objectName: "dialogRemovePlaylist"
29
30
    // TRANSLATORS: this is a title of a dialog with a prompt to delete a playlist
30
31
    title: i18n.tr("Permanently delete playlist?")
31
32
    text: "("+i18n.tr("This cannot be undone")+")"
35
36
    Button {
36
37
        text: i18n.tr("Remove")
37
38
        color: styleMusic.dialog.confirmRemoveButtonColor
 
39
        objectName: "removePlaylistDialogRemoveButton"
38
40
        onClicked: {
39
41
            // removing playlist
40
42
            Playlists.removePlaylist(dialogRemovePlaylist.oldPlaylistName)