We'll want to enable and disable this action based on the current selection. The menu item can be visible even when the currently focused resource is not something that could be published. You can take a look at what `ApplicationPushAction` does. You'll want to add something like:

    spark.focusManager.onResourceChange.listen((r) => _updateEnablement(r));