Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.45 KB | None | 0 0
  1.    homepage_entertainment_channels_selection_unassigned:
  2.         sensor: vue_buttons
  3.         trigger: event
  4.         template: '{% if button in Entertainment and widget == "channel_list_entertainment" and if not context.ch[button]  %}true{% endif %}'
  5.         actions:
  6.             - reflex.context.toggle:
  7.                 key: "vue.HomepageChannelSelections.{{ vue }}"
  8.                 value: "{{ button }}"
  9.                
  10.             - reflex.context.toggle:
  11.                 key: "ch.{{ button }}"
  12.                 value : "{{ vue }}"
  13.                
  14.     homepage_entertainment_channels_selection_assigned:
  15.         sensor: vue_buttons
  16.         trigger: event
  17.         template: '{% if button in Entertainment and widget == "channel_list_entertainment" and if context.ch[button] %}true{% endif %}'
  18.         actions:
  19.            - vue.dialog.yesno
  20.                 vue: "{{ vue }}""
  21.                title: "Confirm Channel Selection"
  22.                message: "{{ button }} is already controlled by another stations. Are you sure you want to take control as well ?"
  23.                yes_text: "Yes"
  24.                no_text: "No"
  25.                yes:
  26.                    - reflex.context.toggle:
  27.                        key: "vue.HomepageChannelSelections.{{ vue }}"
  28.                        value: "{{ button }}"
  29.                
  30.                    - reflex.context.toggle:
  31.                        key: "ch.{{ button }}"
  32.                        value : "{{ vue }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement