title: $:/plugins/linonetwo/visualization-dashboard/tiddlywiki-ui/Modal/CreateGaugeModalFooter

\define lingo-base() $:/plugins/linonetwo/visualization-dashboard/language/
\define draft-tiddler() $:/temp/visualization-dashboard/new-gauge
\define cleanUpAction()
<$action-deletetiddler $tiddler=<<draft-tiddler>> />
\end

<!-- learn this from twMat https://groups.google.com/g/tiddlywiki/c/XXbzgRmcXF0 -->
<$wikify name="newtitle" text="{{$:/plugins/linonetwo/tw-calendar/settings/prefix}}{{$:/state/VisualizationDashboard/create-gauge-tiddler!!draft.title}}" >

<div class="visualization-dashboard-new-gauge-modal-buttons">
  <$button message="tm-close-tiddler">
    <<lingo Modal/CreateGaugeModal/Button/Cancel/Caption>>
    <<cleanUpAction>>
  </$button>
  
  <$button
    message="tm-close-tiddler"
    disabled={{{ [<draft-tiddler>get[draft.title]else[yes]] }}}
  >
    <<lingo Modal/CreateGaugeModal/Button/Create/Caption>>
    <$action-createtiddler
      $basetitle={{{ [<draft-tiddler>get[draft.title]] }}}
      $template=<<draft-tiddler>>
    >
      <$action-listops $tiddler=<<createTiddler-title>>  $tags="$:/Tags/VisualizationDashboard/Gauge"/>
      <<cleanUpAction>>
      <$action-deletefield $tiddler=<<createTiddler-title>> draft.title draft.of/>
    </$action-createtiddler>
    <<cleanUpAction>>
  </$button>
</div>
