houdini/app/javascript/legacy/components/saving_indicator.js
2020-04-23 14:09:14 -05:00

19 lines
494 B
JavaScript

// License: LGPL-3.0-or-later
var h = require("virtual-dom/h")
module.exports = function(savingState) {
return h('div.savingIndicator.pastelBox--yellow'
, {style: {
position: 'fixed'
, top: '0'
, left: '50%'
, width: '70px'
, marginLeft: '-35px'
, textAlign: 'center'
, zIndex: '999999'
, fontSize: '14px'
, padding: '4px'
, display: savingState.hide ? 'none' : 'block'
}}
, savingState.text)
}